﻿<%@ Page Title="Register" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="WebApplication1.Account.Register" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Create a New Account
    </h2>
    <p>
        Use the form below to create a new account.
    </p>
    <span class="failureNotification">
        <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
    </span>
    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
        ValidationGroup="RegisterUserValidationGroup" />
    <div class="accountInfo">
        <fieldset class="register">
            <legend>Account Information</legend>
            <p>
                <asp:Label ID="lblEmail" runat="server" AssociatedControlID="tbEmail" Text="E-mail:" />
                <asp:TextBox ID="tbEmail" runat="server" CssClass="textEntry" />
                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="tbEmail"
                    CssClass="failureNotification" ErrorMessage="E-mail is required." ToolTip="E-mail is required."
                    ValidationGroup="RegisterUserValidationGroup" Text="*" />
            </p>
            <p>
                <asp:Label ID="lblPassword" runat="server" AssociatedControlID="tbPassword" Text="Password:" />
                <asp:TextBox ID="tbPassword" runat="server" CssClass="passwordEntry" TextMode="Password" />
                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="tbPassword"
                    CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required."
                    ValidationGroup="RegisterUserValidationGroup" Text="*" />
            </p>
            <p>
                <asp:Label ID="lblConfirmPassword" runat="server" AssociatedControlID="tbConfirmPassword"
                    Text="Confirm Password:" />
                <asp:TextBox ID="tbConfirmPassword" runat="server" CssClass="passwordEntry" TextMode="Password" />
                <asp:RequiredFieldValidator ControlToValidate="tbConfirmPassword" CssClass="failureNotification"
                    Display="Dynamic" ErrorMessage="Confirm Password is required." ID="ConfirmPasswordRequired"
                    runat="server" ToolTip="Confirm Password is required." ValidationGroup="RegisterUserValidationGroup"
                    Text="*" />
                <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="tbPassword"
                    ControlToValidate="tbConfirmPassword" CssClass="failureNotification" Display="Dynamic"
                    ErrorMessage="The Password and Confirmation Password must match." ValidationGroup="RegisterUserValidationGroup"
                    Text="*" />
            </p>
            <p>
                <asp:Label ID="lblFirstName" runat="server" AssociatedControlID="tbFirstName" Text="First Name:" />
                <asp:TextBox ID="tbFirstName" runat="server" CssClass="textEntry" />
            </p>
            <p>
                <asp:Label ID="lblLastName" runat="server" AssociatedControlID="tbLastName" Text="Last Name:" />
                <asp:TextBox ID="tbLastName" runat="server" CssClass="textEntry" />
            </p>
            <p>
                <asp:Label ID="lblPhone" runat="server" AssociatedControlID="tbPhone" Text="Phone:" />
                <asp:TextBox ID="tbPhone" runat="server" CssClass="textEntry" />
            </p>
        </fieldset>
        <p class="submitButton">
            <asp:Button ID="CreateUserButton" runat="server" CommandName="MoveNext" Text="Create User"
                ValidationGroup="RegisterUserValidationGroup" OnClick="CreateUserButton_Click" />
        </p>
    </div>
</asp:Content>
